﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="sanpham_update.ascx.cs"
    Inherits="Shop_Phone.Admin.UserControls.sanpham_update" %>
<%@ Register Src="~/Admin/UserControls/NotificationDialog.ascx" TagPrefix="uc" TagName="NotificationDialog" %>
<%@ Register Src="~/Admin/UserControls/ConfirmDialog.ascx" TagPrefix="uc" TagName="ConfirmDialog" %>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="//cdn.ckeditor.com/4.4.5/standard/ckeditor.js"></script>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<div class="widgets ui-sortable">
    <div class="widget sortable table" style="opacity: 1;">
        <h3 class="handle">
            Cập nhập sản phẩm
        </h3>
        <div>
            <p>
                <br />
                Những mục có dấu <span style="color: Red">*</span> là bắt buộc phải nhập</p>
            <fieldset>
                <section><label><span style="color:Red">*</span> Mã sản phẩm:</label>
                    <div>
                        <asp:Label ID="lblmasanpham" runat="server" Text=""></asp:Label>
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Danh mục sản phẩm:</label>
                    <div>
                        <asp:DropDownList ID="ddldanhmuc" runat="server" DataSourceID="SqlDataSource1" 
                            DataTextField="tendanhmuc" DataValueField="madanhmuc"></asp:DropDownList>
                        
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:shop_phone %>" 
                            SelectCommand="SELECT [madanhmuc], [tendanhmuc] FROM [danhmucsanpham]">
                        </asp:SqlDataSource>
                        
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Tên sản phẩm:</label>
                    <div>
                        <asp:TextBox ID="txttensanpham" runat="server" Width="200px" ToolTip="" />
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Giá sản phẩm:</label>
                    <div>
                        <asp:TextBox ID="txtgiasanpham" runat="server" Width="200px" ToolTip="" />
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Phụ kiện đi kèm:</label>
                    <div>
                        <asp:TextBox ID="txtphukien" runat="server" Width="200px" ToolTip="" />
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Số lượng:</label>
                    <div>
                        <asp:TextBox ID="txtsoluong" runat="server" Width="200px" ToolTip="" />
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> sản phẩm nổi bật:</label>
                    <div>
                        <asp:CheckBox ID="ckbnoibat" Text="là sản phẩm nổi bật" runat="server"></asp:CheckBox>
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Bảo hành:</label>
                    <div>
                        <asp:TextBox ID="txtbaohanh" TextMode="MultiLine" runat="server" Width="400px" ToolTip="" />
                      
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Tính năng:</label>
                    <div>
                        <CKEditor:CKEditorControl ID="txttinhnang" BasePath="/ckeditor/" runat="server">
                        </CKEditor:CKEditorControl>
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Thông số:</label>
                    <div>
                        <CKEditor:CKEditorControl ID="txtthongso" BasePath="/ckeditor/" runat="server">
                        </CKEditor:CKEditorControl>
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Hình ảnh:</label>
                    <div>
                        <asp:TextBox ID="txthinhanh" runat="server" Width="200px" ToolTip="" />
                        <asp:FileUpload ID="fulanhsanpham" runat="server"></asp:FileUpload>
                    </div>
                    <div>
                        <asp:Image ID="Imgsp" runat="server" Height="50px" Width="50px"></asp:Image>
                    </div>
                </section>
                <section>
				    <div>
				        <asp:Button ID="btnSubmit" CssClass="button" runat="server" Text="Xác nhận" 
                                Width="80px" onclick="btnSubmit_Click"/>
                        &nbsp;&nbsp;
                        <asp:Button ID="btnCancel" CssClass="button" runat="server" Text="Hủy" 
                                Width="80px" onclick="btnCancel_Click"/>
                    </div>
			    </section>
            </fieldset>
        </div>
    </div>
</div>
<uc:NotificationDialog ID="ucNotificationDialog" runat="server" DialogTitle="Cập nhập sản phẩm" />
<uc:ConfirmDialog ID="ucConfirmDialog" runat="server" DialogTitle="Cập nhập sản phẩm" />
